﻿(function(){CodeMirror.xmlHints=[];CodeMirror.xmlHint=function(d,f){if(0<f.length){var b=d.getCursor();d.replaceSelection(f);b={line:b.line,ch:b.ch+1};d.setCursor(b)}CodeMirror.simpleHint(d,j)};var j=function(d){var f=d.getCursor();if(0<f.ch){for(var b=d.getRange({line:0,ch:0},f),e=d="",a=b.length-1;0<=a;a--)if(" "==b[a]||"<"==b[a]){e=b[a];break}else d=b[a]+d;a=b=b.slice(0,b.length-d.length);b="";if(0<=a.length){for(var h=RegExp("<([^!?][^\\s/>]*).*?>","g"),c=[],g;null!=(g=h.exec(a));)c.push({tag:g[1],
selfclose:"/>"===g[0].slice(g[0].length-2)});h=c.length-1;for(g=0;0<=h;h--){var i=c[h];"/"==i.tag[0]?g++:!1==i.selfclose&&(0<g?g--:b="<"+i.tag+">"+b)}a:{c=a.lastIndexOf("<");if(a.lastIndexOf(">")<c&&(a=a.slice(c),"<"!=a)){c=a.indexOf(" ");0>c&&(c=a.indexOf("\t"));0>c&&(c=a.indexOf("\n"));0>c&&(c=a.length);a=a.slice(0,c);break a}a=""}b+=a}e=CodeMirror.xmlHints[b+e];if("undefined"===typeof e)e=[""];else{e=e.slice(0);for(a=e.length-1;0<=a;a--)0!=e[a].indexOf(d)&&e.splice(a,1)}return{list:e,from:{line:f.line,
ch:f.ch-d.length},to:f}}}})();